home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
vmed.arc
/
LCMAPR.CCC
< prev
next >
Wrap
Text File
|
1985-12-03
|
896b
|
48 lines
/* lcmapper/ccc - March 10, 1984 - Jim Kyle
* creates function map for large LC programs with many
* #include files.
*/
#include stdio/csh
#option inlib
main()
{ check("$main"); }
check(filename) char *filename;
{ char inbfr[81];
int k;
while (!gets(inbfr,81))
switch(inbfr[0]) {
case 0:
case '.':
continue;
case '#':
switch(tolower(inbfr[1])) {
case 'e':
return(NULL);
case 'i':
if (check(inbfr+9)!=NULL)
return(EOF);
default:
continue;
}
default:
k=strfind(inbfr," ",0);
if (k>=0) {
inbfr[k] = 0;
printf("%-20s%s\n",inbfr,filename);
}
}
return(EOF);
}
gets(bfr,siz) char *bfr; int siz;
{ int c;
while ((c=getchar())!=EOF && --siz)
if ((*bfr++ = c) == '\n')
break;
*--bfr = 0;
return(c=='\n'?0:EOF);
}